setImportantForAccessibility

Deprecated

Call setImportantForAccessibility directly.

Sets how to determine whether this view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen.

Note: If the current platform version does not support the IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS mode, then IMPORTANT_FOR_ACCESSIBILITY_NO will be used as it is the closest terms of semantics.

Parameters

view

The view whose property to set.

mode

How to determine whether this view is important for accessibility.

See also